package org.springblade.modules.ad.controller;

import org.springblade.modules.ad.service.ADSync;
import org.springblade.modules.ad.utils.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/blade-test")
public class AdSyncController {


	@Resource
	private ADSync adSync;

	/**
	 * 部门同步方法
	 */
	@GetMapping(value = "/syncDeptData")
	public Result syncDeptData(){
		return adSync.syncAdDataInfo();
	}


	/**
	 * 员工同步方法
	 * @return
	 */
	@PostMapping(value = "/syncEmpData")
	public Result syncEmpData(@RequestParam String name){
		return adSync.syncEmpData(name);
	}

}
